package com.ncbee.base.model.vo;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: fengzirong
 * @Description:
 * @Date:Create in 10:59 2018/9/17
 * 通用的树形结构封装java对象
 *
 */
public class TreeVo implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String name;
    private Long value;
    private List<TreeVo> children;
    private Long pid;

    public Long getId(){
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getValue() {
        return value;
    }

    public void setValue(Long value) {
        this.value = value;
    }

    public List<TreeVo> getChildren() {
        return children;
    }

    public void setChildren(List<TreeVo> children) {
        this.children = children;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

}
